# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=gcovr
pkgver=7.2
pkgrel=1
pkgdesc="Generates a simple report that summarizes the gcc code coverage"
url="http://gcovr.com/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-setuptools py3-lxml py3-jinja2 py3-pygments"
checkdepends="py3-pytest py3-pyutilib cmake"
subpackages="$pkgname-pyc"
source="gcovr-$pkgver.tar.gz::https://github.com/gcovr/gcovr/archive/$pkgver.tar.gz"
options="!check" # tests are failing

build() {
	python3 setup.py build
}

check() {
	py.test-3 -v gcovr
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
fc4acbfeef48866c5c8884681375069c7308a86aaefe5b36e631240a96dcdc7c56b3e8d0c221f66dbbe29302b549c5c9b9c5e01bbf4103165b085ae33c369f55  gcovr-7.2.tar.gz
"
